package com.richapp.launcher.database.system.mode;

import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.table.DatabaseTable;
import com.jack.util.date.DateUtil;
import com.richapp.launcher.utils.Constants;

@DatabaseTable(tableName = "box")
public class BoxModel {

	@DatabaseField(generatedId = true)
	private int id;
	
	@DatabaseField(columnName = "userName")
	private String userName;
	
	@DatabaseField(columnName = "boxCpuId",unique = true)
	private String boxCpuId;

	@DatabaseField(columnName = "distributorId",canBeNull = false,defaultValue = "00010000")
	private String distributorId;
	
	@DatabaseField(columnName = "boxName")
	private String boxName;
	
	@DatabaseField(columnName = "boxInsideIp")
	private String boxInsideIp;

	@DatabaseField(columnName = "lastUpdateTime",canBeNull = false)
	private long lastUpdateTime = 0;

	@DatabaseField(columnName = "status",canBeNull = false,defaultValue = "offline")
	private String status = Constants.BOX_STATUS_OFFLINE;

	//最后操作时间
	@DatabaseField(columnName = "lastHandelTime",canBeNull = false,defaultValue ="0")
	private String lastHandelTime ;
	public BoxModel() {

	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getBoxCpuId() {
		return boxCpuId;
	}

	public void setBoxCpuId(String boxCpuId) {
		this.boxCpuId = boxCpuId;
	}

	public String getDistributorId() {
		return distributorId;
	}

	public void setDistributorId(String distributorId) {
		this.distributorId = distributorId;
	}

	public String getBoxName() {
		return boxName;
	}

	public void setBoxName(String boxName) {
		this.boxName = boxName;
	}

	public String getBoxInsideIp() {
		return boxInsideIp;
	}

	public void setBoxInsideIp(String boxInsideIp) {
		this.boxInsideIp = boxInsideIp;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public long getLastUpdateTime() {
		return lastUpdateTime;
	}

	public void setLastUpdateTime(long lastUpdateTime) {
		this.lastUpdateTime = lastUpdateTime;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public String getLastHandelTime() {
		return lastHandelTime;
	}

	public void setLastHandelTime(String lastHandelTime) {
		this.lastHandelTime = lastHandelTime;
	}
}
